package com.sims.action.seatChart;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.bean.Class;
import com.sims.beanEnhanced.StudentSeatChart;
import com.sims.service.SeatChartService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;

@SuppressWarnings("serial")
public class FindSeatChartAction extends ActionEnhanced{
	
	private List<StudentSeatChart> list = new ArrayList();
	
	@Autowired
	private SeatChartService seatChartService;

	public List<StudentSeatChart> getList() {
		return list;
	}
	public void setList(List<StudentSeatChart> list) {
		this.list = list;
	}
	
	@Override
	public String execute() {
		
		result = seatChartService.findSeatChart(list);
		if (result.containsKey(Constant.SUCCESS)) {
			System.out.println("success");
			return SUCCESS;
		}
		return ERROR;
	}
}
